package com.ivy.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.ivy.dao.MessageDao;
import com.ivy.dao.impl.MessageDaoImpl;
import com.ivy.entity.Friend;
import com.ivy.entity.Message;
import com.ivy.entity.User;
import com.ivy.service.MessageService;

public class MessageServiceImpl implements MessageService{
	private MessageDao messageDao = new MessageDaoImpl();
	@Override
	public void addMessage(Message message) {
		messageDao.insert(message);
	}

	@Override
	public List<Message> findMessage(Message message) {
		List<Message> messages = messageDao.findMessage(message);
		return messages;
	}

}
